/**
 * 授权数据接口
 */
export interface AuthStateInterface {
  user: string,
  icon: string,
}

/**
 * 登录
 */
export const LOGIN_TYPE = 'LOGIN_TYPE'
export interface LoginDispatch {
  type: typeof LOGIN_TYPE,
  value: {
    user: string,
    icon: string,
    pages: Array<any>
  }
}

/**
 * SESSION 登录
 */
export const SESSION_LOGIN = 'SESSION_LOGIN'
export interface SessionLogin {
  type: typeof SESSION_LOGIN
  value: any
}

/**
 * 退出登录
 */
export const LOGOUT = 'LOGOUT'
export interface Logout {
  type: typeof LOGOUT
}

/**
 * 前端退出登录
 */
export const LOGOUT_WEB = 'LOGOUT_WEB'
export interface Logout_web {
  type: typeof LOGOUT_WEB
}

export type AuthActionTypes = LoginDispatch | Logout | SessionLogin | Logout_web